package cn.xutongxue.api.client;

import cn.xutongxue.api.config.FeignInterceptor;
import cn.xutongxue.api.module.user.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        name = "cloud-docs-user",
        configuration = FeignInterceptor.class
)
public interface UserClient {

    @GetMapping("/user/getUserRoleById")
    public String getUserRole(@RequestParam("userId") Integer userId);

    @GetMapping("/user/getUserInfoById")
    public UserVo getUserInfo(@RequestParam("userId") Integer userId);
}
